SuppliedTextWidget
An AbstractTextWidget that renders text from a supplier of text, not a static text instance
Author
fzzyhmstrs
Since
0.3.1, removed align:direction: methods and now implements TooltipChild in 0.6.0, uses java.util.Supplier instead of googles in 0.6.8 and deprecates constructors with google Supplier. Google supplier constructors removed 0.7.0.
Parameters
Supplier<Text> - supplies text to this widget
TextRenderer - textRenderer instance
Int - width of the widget in pixels
Int - height of the widget in pixels
Functions
Aligns the widget text to the alignment fraction provided
Provides a list of text for appending into a Narration Hint. By default this will use the same lines passed from provideTooltipLines, with predefined values for the inputs
supplies a text for tooltips if the text overflows the width of the widget.